<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\fund;

use app\enum\CommonEnum;
use app\service\BaseService;
use app\service\fund\kuaishou\AccountService as KS;
use app\service\fund\ocean\AccountService as OE;
use app\service\fund\qq\AccountService as QQ;

final class FundAccountService extends FundService implements FundInterface
{
    private ?BaseService $handle;

    public function __construct(int $mediaId)
    {
        $this->mediaId = $mediaId;
    }

    public function setInstance()
    {
        if ($this->mediaId == CommonEnum::OE_MEDIA) {
            $this->handle = new OE();
        } elseif ($this->mediaId == CommonEnum::KS_MEDIA) {
            $this->handle = new KS();
        } elseif ($this->mediaId == CommonEnum::QQ_MEDIA) {
            $this->handle = new QQ();
        }
    }

    public function getData(array $params = [])
    {
    }

    public function isSuccess()
    {
    }
}
